package com.thwj.project.biz.domain;

    import java.math.BigDecimal;
    import java.util.Date;
    import com.baomidou.mybatisplus.annotation.*;
    import lombok.*;;
    import com.fasterxml.jackson.annotation.JsonFormat;
    import java.io.Serializable;
import com.thwj.common.annotation.Excel;
import com.baomidou.mybatisplus.extension.activerecord.Model;

/**
 * 用户账户对象 biz_user_account
 *
 * @author generate
 * @date 2023-06-16
 */

@Getter
@Setter
@ToString
@Builder
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = true)
@TableName("biz_user_account")
public class UserAccount extends Model<UserAccount>{
private static final long serialVersionUID=1L;

    /** 主键 */
    @TableId(type = IdType.AUTO)
    private Long id;

    /** 用户id */
            @Excel(name = "用户id")
    private Long userId;

    /** 余额 */
            @Excel(name = "余额")
    private BigDecimal amount;

    /** 冻结金额 */
            @Excel(name = "冻结金额")
    private BigDecimal freezeAmount;

    /** 创建时间 */
            @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
            @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date createDate;

    /** $column.columnComment */
            @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private Integer versionNo;




    @Override
    public Serializable pkVal() {
        return this.id;
    }
}
